#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="templates"
__date__="2016/8/12"
__time__="15:51"
"""
# 定义主机组的模板
from services import linux
from services import generic
class LinuxTemplate(generic.BaseTemplate):
    def __init__(self):
        super(LinuxTemplate,self).__init__()
        self.name = 'linux_os_template'
        self.services = [
            linux.cpu,  # 是类而不是实例
            linux.memory,
        ]

class WindowsTemplate(generic.BaseTemplate):
    def __init__(self):
        super(WindowsTemplate,self).__init__()

#a = WindowsTemplate()
#print a.name